<cfparam name="start" default="1">
<cfparam name="disp" default="25">
<cfparam name="page" default="1">
<cfparam name="updateid" default="0">

<cfset sqlstart = start - 1>
<cfset sqlend = disp>
<cfinvoke component="cfcs.common.metadata" method="getmetadatacount" returnvariable="totalrecords" />
<cfinvoke component="cfcs.common.metadata" method="getallmetadata" returnvariable="qmeta" startrow="#sqlstart#" endrow="#sqlend#" />

<div id="messages_hints">Use this remove extra meta data that is no longer useful or to optionally make changes to existing meta data.</div>
<cfinvoke component="cfcs.common.paginate" method="show" 
start="#start#" 
disp="#disp#" 
totalrecords="#totalrecords#" 
page="#page#" 
url="index.cfm?c=metadata&a=default"
maxset="12"
 />
<table width="100%" border="0" cellspacing="0" cellpadding="6">
  <tr>
    <td width="25%" id="columnheaders">File</td>
    <td width="20%" id="columnheaders">Component</td>
    <td width="20%" id="columnheaders">Action</td>
    <td id="columnheaders">Meta Title</td>
    <td width="10%" id="columnheaders">&nbsp;</td>
  </tr>
  <cfoutput query="qmeta">
  <cfset clicklink = "index.cfm?c=metadata&a=edit&id=#id#&disp=#disp#&start=#start#&page=#page#">
  <tr class="menu_row" onMouseOver="this.className = 'menu_row_over2';" onMouseOut="this.className = 'menu_row';">
    <td <cfif updateid IS id>class="menu_cell_lastid"<cfelse>class="menu_cell"</cfif> onclick="window.location.href = '#clicklink#';">#for_file#</td>
    <td <cfif updateid IS id>class="menu_cell_lastid"<cfelse>class="menu_cell"</cfif> onclick="window.location.href = '#clicklink#';">#for_c#</td>
    <td <cfif updateid IS id>class="menu_cell_lastid"<cfelse>class="menu_cell"</cfif> onclick="window.location.href = '#clicklink#';">#for_a#</td>
    <td <cfif updateid IS id>class="menu_cell_lastid"<cfelse>class="menu_cell"</cfif> onclick="window.location.href = '#clicklink#';">#meta_title#</td>
    <td <cfif updateid IS id>class="menu_cell_lastid"<cfelse>class="menu_cell"</cfif>><a href = "index.cfm?c=metadata&a=edit&id=#id#&disp=#disp#&start=#start#&page=#page#"><img src="images/edit.png" border="0" alt="Edit data" title="Edit data" /></a>&nbsp;&nbsp;<a href = "index.cfm?c=metadata&a=delete&id=#id#&disp=#disp#&start=#start#&page=#page#"><img src="images/delete.png" border="0" alt="Delete data" title="Delete data" /></a></td>
  </tr>
</cfoutput>
</table>

